package Stream;

import java.net.Inet4Address;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.stream.Collectors;

/**
 * @author chihb
 * @create-time 2024/7/9 6:25
 * @description
 */
public class Test3 {
    public static void main(String[] args) {
        List<Integer> list=new ArrayList<>();
        Collections.addAll(list,1,2,3,4,5,6,7,8,9,10);
        List<Integer> collect = list.stream().filter(s -> s % 2 == 0).toList();
        System.out.println(collect);
    }
}
